//    Copyright (C) Kherty.  All rights reserved.
using System.Collections.Generic;

namespace OpenLS.Spreadsheet.Collections
{
    static class FrugalHelper
    {
        internal static bool IsSet(int _entry)
        {
            return _entry != InvalidKey;
        }

        internal static KeyValuePair<int, TValue> GetEmptyPair<TValue>()
        {
            return new KeyValuePair<int, TValue>(InvalidKey, default(TValue));
        }
        const int InvalidKey = int.MinValue;
    }
}
